/* 
 * File:   pcf8575.h
 * Author: Administrator
 *
 * Created on 2015��4��9��, ����3:49
 */

#ifndef PCF8575_H
#define	PCF8575_H

#ifdef	__cplusplus
extern "C" {
#endif

#define		LED_HI_01	0X8000
#define		LED_HI_02	0X4000
#define		LED_HI_03	0X2000
#define		LED_HI_04	0X1000
#define		LED_HI_05	0X0800
#define		LED_HI_06	0X0400
#define		LED_HI_07	0X0200
#define		LED_HI_08	0X0100

#define		LED_LO_01	0X0001
#define		LED_LO_02	0X0002
#define		LED_LO_03	0X0004
#define		LED_LO_04	0X0008
#define		LED_LO_05	0X0010
#define		LED_LO_06	0X0020
#define		LED_LO_07	0X0040
#define		LED_LO_08	0X0080

#define		LED_ALL		0Xffff

void pcf8575_led_on(uint16_t led_id);
void pcf8575_led_off(uint16_t led_id);
void pcf8575_led_toggle(uint16_t led_id);

#ifdef	__cplusplus
}
#endif

#endif	/* PCF8575_H */

